//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.warrior.superdata.base;

import com.warrior.superdata.constants.ResultCode;

public class CommonResponse {
    public CommonResponse() {
    }

    public static CommonResult success(Object obj) {
        return new CommonResult(ResultCode.SUCCEED_CODE, "成功", obj, (Object)null);
    }

    public static CommonResult success(String msg, Object obj) {
        return new CommonResult(ResultCode.SUCCEED_CODE, msg, obj, (Object)null);
    }

    public static CommonResult success(String msg, Object obj, Object ext) {
        return new CommonResult(ResultCode.SUCCEED_CODE, msg, obj, ext);
    }

    public static CommonResult error(Object obj) {
        return new CommonResult(ResultCode.ERROR_CODE, "失败", obj, (Object)null);
    }

    public static CommonResult error(String msg, Object obj) {
        return new CommonResult(ResultCode.ERROR_CODE, msg, obj, (Object)null);
    }

    public static CommonResult error(String msg, Object obj, Object ext) {
        return new CommonResult(ResultCode.ERROR_CODE, msg, obj, ext);
    }
}
